import { FormSchema } from '/@/components/BasicForm/type/form';

export const vpcColumns = [
  {
    title: 'VPC UUID',
    dataIndex: 'vpcUuid',
  },
  {
    title: 'VPC 名称',
    dataIndex: 'vpcName',
  },
  {
    title: 'VPC 主网段',
    dataIndex: 'cidr',
  },
  {
    title: '子网网段位置',
    dataIndex: 'subnetIndex',
  },
  {
    title: 'VPC 归属',
    dataIndex: 'belongTo',
  },
  {
    title: '描述',
    dataIndex: 'description',
  },
];

export const subnetColumns = [
  {
    title: 'VPC ID',
    dataIndex: 'vpcId',
  },
  {
    title: '子网名称',
    dataIndex: 'subnetName',
  },
  {
    title: '子网 UUID',
    dataIndex: 'subnetUuid',
  },
  {
    title: '子网归属',
    dataIndex: 'belongTo',
  },
  {
    title: '所属企业',
    dataIndex: 'tenantCode',
  },
  {
    title: '描述',
    dataIndex: 'description',
  },
];
export const securityGroupColumns = [
  {
    title: '安全组 UUID',
    dataIndex: 'securityGroupUuid',
  },
  {
    title: '安全组 名称',
    dataIndex: 'securityGroupName',
  },
  {
    title: '应用ID',
    dataIndex: 'appId',
  },
  {
    title: '应用名称',
    dataIndex: 'name',
  },
  {
    title: '模块ID',
    dataIndex: 'moduleId',
  },
  {
    title: '模块名称',
    dataIndex: 'moduleName',
  },
  {
    title: '安全组归属',
    dataIndex: 'belongTo',
  },
];
export const fileSystemSizeSchema: FormSchema[] = [
  {
    field: 'vpcUuid',
    label: 'VPC UUID',
    component: 'Input',
    componentProps: {
      placeholder: '请输入VPC UUID',
    },
    labelWidth: 65,
    colProps: { span: 3 },
  },
  {
    field: 'vpcName',
    label: 'VPC 名称',
    component: 'Input',
    componentProps: {
      placeholder: '请输入VPC 名称',
    },
    labelWidth: 75,
    colProps: { span: 4 },
  },
  {
    field: 'cidr',
    label: 'VPC 主网段',
    component: 'Input',
    componentProps: {
      placeholder: '请输入VPC 主网段',
      options: [
        {
          label: 'NFS',
          value: 'NFS',
        },
        {
          label: 'CIFS',
          value: 'CIFS',
        },
      ],
    },
    labelWidth: 75,
    colProps: { span: 3 },
  },
  {
    field: 'subnetIndex',
    label: '子网网段位置',
    component: 'Input',
    componentProps: {
      placeholder: '请输入子网网段位置',
    },
    labelWidth: 75,
    colProps: { span: 3 },
  },

  {
    field: 'belongTo',
    label: 'VPC归属',
    component: 'Select',
    componentProps: {
      placeholder: '请选择VPC归属',
      options: [
        {
          label: '模块License服务器',
          value: '1',
        },
        {
          label: '客户端服务器&文件系统',
          value: '2',
        },
      ],
    },
    labelWidth: 75,
    colProps: { span: 4 },
  },

  {
    field: 'description',
    label: '描述',
    component: 'InputTextArea',
    componentProps: {},
    labelWidth: 75,
    colProps: { span: 4 },
  },
];
